<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInLeft">
        <div>
            <div class="row">
                <!--第一步 开始-->
                <div class="pt10">
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content clearfix pt10">
                                <form id="userGradeConfigFrom">
                                    <input id="userGradeConfigId" name="id" class="hide" th:value="${userGradeConfig['id']}">
                                    <input id="gradeNameNum" class="hide" th:value="${gradeNameNum}" >
                                    <div class="form-horizontal">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 等级名称</label>
                                        <div class="col-sm-8">
                                            <input class="form-control validate-data" th:if="${userGradeConfig['id']}==null" readonly=＂true＂ id="gradeName"  name="gradeName" th:value="${gradeName}">
                                            <input class="form-control validate-data"  th:if="${userGradeConfig['id']}!=null" readonly=＂true＂ id="gradeName"  name="gradeName" th:value="${userGradeConfig['gradeName']}">
                                            <span class="help-block m-b-none c-999"> 等级名称不能更改!</span>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"> 等级头衔</label>
                                        <div class="col-sm-8">
                                            <div class="input-group m-b">
                                                <input id="gradeTitle" class="form-control validate-data"   name="gradeTitle"  th:value="${userGradeConfig['gradeTitle']}" >
                                            </div>
                                            <span class="help-block m-b-none c-999">  等级头衔不能为空！</span>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"> 所需经验</label>
                                        <div class="col-sm-8">
                                            <div class="input-group m-b">
                                                <input id="experience" class="form-control validate-data" name="experience" th:if="${userGradeConfig['id']}==1 or ${gradeName}=='LV1' or ${userGradeConfig['gradeName']}=='LV1'" readonly=＂true＂ th:value="0">
                                                <input id="experience" class="form-control validate-data" onkeyup="this.value=this.value.replace(/\D/g,'')"  name="experience" th:if="${userGradeConfig['id']}!=1 and ${userGradeConfig['gradeName']}!='LV1' and ${gradeName}!='LV1'"  th:value="${userGradeConfig['experience']}">
                                            </div>
                                            <span class="help-block m-b-none c-999">
                                                <span th:if="${userGradeConfig['id']}==1 or ${gradeName}=='LV1'" >学员初始经验为0，LV1经验不可编辑</span>
                                                <span th:if="${userGradeConfig['id']}!=1 and ${gradeName}!='LV1'">只允许填写非0的正整数，如90</span>
                                            </span>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                </div>
                            </form>
                            </div>
                        </div>
                    </div>
                </div>
        </div>
    </div>
   </div>
</body>
</html>
